import styled from 'styled-components'

export const HomeWrapper = styled.section`
    width: 1000px;
    height: 360px;
    margin: 30px auto;
`;
export const HomeLeft = styled.div`
    width: 720px;
    float: left;
    .banner-img{
        height: 270px;
    }
`;
export const HomeRight = styled.div`
    width: 280px;
    float: right;

`;
export const TopicWrapper = styled.div`
    overflow: hidden;
    padding: 20px 0 10px 0;
    //margin-left: -18px;
`;
export const TopicItem = styled.div`
    float: left;
    height: 32px;
    padding-right: 14px;
    line-height: 32px;
    border: solid 1px #dcdcdc;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 18px;
    margin-bottom: 10px;
    .topic-pic{
        display: block;
        float:left;
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
`;
export const ArcWrapper = styled.section`
    margin: 10px 0 10px;
    padding: 0 10px;
    box-sizing: border-box;
    width: 100%;
`;
export const ArcLeft = styled.div`
    width: 500px;
    float: left;
    .link{
      text-decoration: none;
    }
`;
export const Arc = styled.div`
    position: relative;
    color: #999;
    border-top: solid 1px #f0f0f0;
    overflow: hidden;
    .title{
        height: 30px;
        line-height: 30px;
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin: 20px 0 8px;
        cursor: pointer;
    }
    .desc{
        width : 100%;
        line-height: 24px;
        font-size: 13px;
        margin-bottom: 10px;
        color: #999;
    }
    .arc-bottom{
        height: 18px;
        line-height: 18px;
        overflow: hidden;
        .iconfont{
            margin-right: 2px;
        }
        .writer{
            display: block;
            float: left;
            text-decoration: none;
            font-size: 12px;
            margin-right: 14px;
            color: #999;
        }
        .comment{
            display: inline-block;
            float: left;
            text-decoration: none;
            font-size: 12px;
            margin-right: 14px;
            color: #999;
        }
        .like{
            display: inline-block;
            float: left;
            text-decoration: none;
            font-size: 12px;
        }
    }
`;
export const ArcRight = styled.div`
    position: absolute;
    top: 30px;
    right: 0;
    width: 150px;
    .arc-pic{
        width: 150px;
        height: 100px;
    }
`;
export const RecommondWrapper = styled.div`
    width: 100%;
`;
export const RecommondItem = styled.div`
    width: 280px;
    height: 50px;
    margin-bottom: 6px;
    background: url(${(props) => props.url});
    background-size: contain;
`;
export const DownloadWrapper = styled.section`
    position: relative;
    width: 100%;
    border: solid 1px #f0f0f0;
    border-radius: 6px;
    padding: 10px 20px;
    box-sizing: border-box;
    .download-pic1{
        display:block;
        float: left;
        margin-right: 10px;
        width: 60px;
        height：60px;
    }
    .download-pic2{
      position: absolute;
      width:160px;
      height:160px;
      top:-170px;
      left:60px;
    }
    .imgHide{
        display:none;
    }
    .download-right{
        //float:right;
        height: 60px;
        line-height: 30px;
        .title{
            font-size: 15px;
            color: #333;
        }
        .desc{
            font-size: 13px;
            color: #999;
            margin-top: -10px;
        }
    }
`;
export const WriterWrapper = styled.section`
    width: 100%;
    height: 1000px;
    padding: 20px 0 20px;
    //background: red;
`;
export const WriterTitle = styled.section`
    height: 30px;
    font-size: 14px;
    color: #969696;
    .left{
      width: 100px;
      float:left;
    }
    .right{
      width: 100px;
      float:right;
      text-align: right;
    }
`;
export const WriterItem = styled.section`
    height: 48px;
    overflow:hidden;
    padding: 4px 0 4px;
    margin-bottom: 10px;
    .writer-img{
        display:block;
        float:left;
        width: 48px;
        height: 48px;
        border-radius: 24px;
        margin-right: 6px;
    }
    .middle{
        float:left;
        height: 48px;
        line-height: 24px;
    }
    .middle .title{
        font-size: 14px;
        color: #333;
    }
    .middle .desc{
        font-size: 12px;
        color: #969696;
    }
    .right{
        float: right;
        font-size: 13px;
        color: #42c02e;
    }
`;
export const LoadMore = styled.div`
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 15px;
    background: #a5a5a5;
    color: #fff;
    border-radius: 20px;
    cursor:pointer;
    text-align: center;
`;
export const BackTop = styled.div`
    position: fixed;
    right: 50px;
    bottom: 50px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    color: #333;
    border: solid 1px #ccc;
    text-align: center;
    cursor:pointer;
`;
